100 cutRsc["DestinyStateDialog","PLAIN"];

waitUntil {!isNil "KSS_thirst"};
waitUntil {!isNil "KSS_hunger"};



//设置饥饿度
[_this # 0] spawn Destiny_fnc_SetHunger;
//设置饥渴
[_this # 1] spawn Destiny_fnc_SetThirsty;

//定时器停止
DESTINY_TIMER_STOP = false;
call Destiny_fnc_timerStop;

Destiny_ui_update = {
	call Destiny_fnc_healthUpdate;
	call Destiny_fnc_killSumUpdate;
	call Destiny_fnc_groupUpdate;
	call Destiny_fnc_fpsUpdate;
	call Destiny_fnc_hungerUpdate;
	call Destiny_fnc_thirstyUpdate;
};

//定时刷新
[] spawn {
	while {true} do {
		call Destiny_ui_update;
		sleep 2;
	};
};

//开始计算减少玩家饥渴 此函数弃用 已被MOD覆盖功能
//0 spawn Destiny_fnc_hunger;

